<template>
	<view class="content">
		<view class="block-view-child bg-white">
			<view class="block-view">
				<input type="text" placeholder="真实姓名" />
			</view>
		</view>
		<view class="block-view-child bg-white">
			<view class="block-view">
				<input type="text" placeholder="电话" />
			</view>
		</view>
		<view class="block-view-child bg-white">
			<view class="block-view">
				<input type="text" placeholder="详细地址" />
			</view>
		</view>
		<view class="block-view btn-view">
			<view class="block-view-child">
				<button class="btn" @tap="submit">确&nbsp;&nbsp;&nbsp;&nbsp;定</button>
			</view>
		</view>
		<view>
			<!-- 提示信息弹窗 -->
			<uni-popup ref="message" type="message">
				<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
			</uni-popup>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msgType: 'success',
				messageText: '这是一条成功提示'
			}
		},
		methods: {
			submit() {
				this.messageText = `保存成功！`
				this.$refs.message.open()
			}
		}
	}
</script>

<style>
	.content {
		background-color: #f2f2f2;
		padding: 10px;
		height: 100%;
		box-sizing: border-box;
	}

	.bg-white {
		background-color: white;
	}

	.block-view {
		padding: 10px;
	}

	.block-view-child {
		padding: 10px;
		border-radius: 10px;
		margin-bottom: 10px;
	}


	.btn {
		width: 60%;
		background-color: royalblue;
		color: white;
	}

	.btn-view {
		margin-bottom: 10px;
	}
</style>